import { defineMock } from "./base";

export default defineMock([
  {
    url: "exam/page",
    method: ["GET"],
    body: {
      code: "00000",
      data: {
        list: [
          {
            id: 1,
            matchName:
              "2024年第八届一带一路暨金砖国家技能发展与技术创新大赛——食品安全快速检测赛项",
            status: "1",
            group: "高职",
            startTime: "2024-11-20 09:31",
            endTime: "2024-11-20 10:20",
            entryNumber: "200",
            finishNumber: "50",
            inProgressNumber: "50",
            notStartedNumber: "50",
            completionRrate: "50",
          },
        ],
      },
      msg: "一切ok",
    },
  },
  {
    url: "exam/examinee",
    method: ["GET"],
    body: {
      code: "00000",
      data: {
        list: [
          {
            id: 1,
            stuName: "梁X杰",
            schoolName: "广东食品XX学院",
            status: "1",
            group: "高职",
            matchTeam: "A",
            stuIdCard: "123456789987654321",
            startTime: "2024-11-20 09:31",
            endTime: "2024-11-20 10:20",
            remark: "123",
          },
          {
            id: 2,
            stuName: "梁X杰B",
            schoolName: "广东食品XX学院B",
            status: "1",
            group: "高职",
            matchTeam: "A",
            stuIdCard: "123456789987654321B",
            startTime: "2024-11-20 09:31",
            endTime: "2024-11-20 10:20",
            remark: "123",
          },
          {
            id: 3,
            stuName: "梁X杰C",
            schoolName: "广东食品XX学院C",
            status: "1",
            group: "高职",
            matchTeam: "A",
            stuIdCard: "123456789987654321C",
            startTime: "2024-11-20 09:31",
            endTime: "2024-11-20 10:20",
            remark: "123",
          },
          {
            id: 4,
            stuName: "梁X杰D",
            schoolName: "广东食品XX学院D",
            status: "1",
            group: "高职",
            matchTeam: "A",
            stuIdCard: "123456789987654321D",
            startTime: "2024-11-20 09:31",
            endTime: "2024-11-20 10:20",
            remark: "123",
          },
        ],
      },
      msg: "一切ok",
    },
  },
  // 修改部门
  {
    url: "/exam/updateStatus",
    method: ["PUT"],
    body({ body }) {
      return {
        code: "00000",
        data: null,
        msg: "更新成功",
      };
    },
  },
]);
